package com.yc.privilege.mapper;

import java.util.List;

import com.yc.privilege.entity.Function;
import com.yc.privilege.entity.FunctionTree;
import com.yc.privilege.entity.TempPage;
import com.yc.privilege.entity.User;

public interface FunctionMapper {


	int update(Function function);

	int deleteById(int fid);
	
	List<Function> findnextFunction(String rName,int uid);

	FunctionTree functionTree(User user);

	FunctionTree updateFunctionTree(int uid, int rid);

	TempPage<Function> findFunctionByPages(int parent_id,int page, int rows);
	
	/**
	 * 批量更新功能信息
	 * @param list
	 * @return
	 */
	int updateFunction(List<Function> list);

}
